package edu.iul.daam.rap;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RatingBar;
import android.widget.Toast;

public class OptionMenuPersonalActivity extends Activity implements OnClickListener{

	EditText text_name, text_age, text_country;
	RadioGroup radioGroup;
	RadioButton radiobutton_male, radiobutton_female;
	Button buttonsubmit;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layoutpersonaldata);

		text_name = (EditText) findViewById(R.id.entry_name);
		text_name.setOnClickListener(this);

		text_age = (EditText) findViewById(R.id.entry_age);
		text_age.setOnClickListener(this);

		radiobutton_male = (RadioButton)findViewById(R.id.radiobutton_male);
		radiobutton_female = (RadioButton)findViewById(R.id.radiobutton_female);

		text_country = (EditText) findViewById(R.id.entry_country);
		text_country.setOnClickListener(this);
		
		buttonsubmit = (Button) findViewById(R.id.ok);
		buttonsubmit.setOnClickListener(this);
	}

	public void onClick(View view) {
		switch(view.getId()){
		case R.id.ok:
			finish();
			break;
		}
	}
}
